const { Controller } = require("uni-cloud-router");
module.exports = class httpController extends Controller {
	async cityOperPoint() {//中台多种用户接口
		const { ctx, service } = this;
		return await service.http.cityOperPoint(ctx);
	}
	async smtUserInfo() {//市民通换用户信息
		const { ctx, service } = this;
		return await service.http.smtUserInfo(ctx);
	}
	async bindUser() {//批量绑定市民通ID并存入数据库
		const { ctx, service } = this;
		return await service.http.bindUser(ctx);
	}
	async intialUser() {//批量初始化用户
		const { ctx, service } = this;
		return await service.http.intialUser(ctx);
	}
	async increaseCredits() {//积分增长
		const { ctx, service } = this;
		return await service.http.increaseCredits(ctx);
	}
	async memberInfo() {//积分余额及兑换信息
		const { ctx, service } = this;
		return await service.http.memberInfo(ctx);
	}
	async pointExchange() {//积分兑换
		const { ctx, service } = this;
		return await service.http.pointExchange(ctx);
	}
	async addToken(){//在token表添加一个记录，返回id
		const { ctx, service } = this;
		return await service.http.addToken(ctx);
	}
	async getticket(){//获取公众号ticket，用于家长学院公众号进入统一页面时，引导跳转市民通小程序
		const { ctx, service } = this;
		return await service.http.getticket(ctx);
	}
};
